package router

import (
	"firstdemo_go/api"
	"github.com/gin-gonic/gin"
)

func DataRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	BaseRouter := Router.Group("data")
	{
		BaseRouter.POST("addData", api.AddData)
		BaseRouter.POST("delData", api.DelData)
		BaseRouter.POST("modData", api.ModData)
		BaseRouter.POST("queryData", api.QueryData)
	}
	return BaseRouter
}
